home *** CD-ROM | disk | FTP | other *** search
/ Univers Mac Interactif 42 / Univers Mac Interactif - Issue 42.iso / >interactif / Démos Voyager / WWIN.DIR / 00098_Script_MOVIE SCRIPT < prev    next >
Text File  |  1994-10-20  |  1KB  |  82 lines

  1. on startMovie
  2.   cursor 200
  3. end startMovie
  4.  
  5. on waitQT chan
  6.   if the movieRate of sprite chan = 1 then go the frame
  7. end
  8.  
  9. on waitSnd chan
  10.   if soundBusy(chan) then go the frame
  11. end
  12.  
  13. on waiting theTicks
  14.   --must be preceded by startTimer
  15.   if theTicks >= the timer then go the frame
  16. end
  17.  
  18. on setCheck
  19.   global checkNum
  20.   set checkNum = 1
  21. end setCheck
  22.  
  23. on PictPrize
  24.   --this selects the opening graphic
  25.   put random(5) into numGo
  26.   if numGo = 1 then
  27.     set the castNum of sprite 18 to 95
  28.   end if
  29.   if numGo = 2 then
  30.     set the castNum of sprite 18 to 96
  31.   end if
  32.   if numGo = 3 then
  33.     set the castNum of sprite 18 to 94
  34.   end if
  35.   if numGo = 4 then
  36.     set the castNum of sprite 18 to 97
  37.   end if
  38.   if numGo = 5 then
  39.     set the castNum of sprite 18 to 4
  40.   end if
  41.   updateStage
  42. end PictPrize
  43.  
  44. on enterframe
  45.   cursor 200
  46. end
  47.  
  48. --THESE ARE NOT USED?
  49. on Roam1
  50.   put random(6) into numZo
  51.   if numZo = 1 then
  52.     fun
  53.   end if
  54.   if numZo = 2 then
  55.     flyguy
  56.   end if
  57.   if numZo = 3 then
  58.     Spider
  59.   end if
  60.   if numZo = 4 then
  61.     Kissn
  62.   end if
  63.   if numZo = 5 then
  64.     BaDream
  65.   end if
  66.   if numZo = 6 then
  67.     Roadside
  68.   end if
  69. end Roam1
  70.  
  71. on Roam2
  72.   go to frame "toRun"
  73. end Roam2
  74.  
  75. on KeyDown
  76.   global autoplaying
  77.   put 0 into autoplaying
  78.   unloadCast
  79.   puppetSprite 18, false
  80.   go to label ("exit")
  81. end
  82.